<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IFWiki.Models.GamePlace>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Source: '<%= Html.Encode(Model.PlaceName) %>' (from the game '<%= Html.Encode(Model.GameName) %>')</title>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="menu" runat="server">
        <div id="menucontainer">
            <ul id="menu">              
                <li><%= Html.ActionLink("Main", "Index", "GamePlace", new { name = Model.Name }, null)%></li>
                <li><a class="current">Source</a></li>   
                <li><%= Html.ActionLink("Talk", "Talk", "Article", new { name = Model.Name, innerType = Model.InnerType }, null)%></li>
            </ul>
        </div>
   </div>
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
            <div id="submenucontainer">
                <ul id="submenu">              
                <li><%= Html.ActionLink("Source", "ViewSource", "Game", new { name = Model.Name }, null)%></li>
                <li><a class="current">Edit</a></li>                                                
                <li><%= Html.ActionLink("History", "ListRevisions", "Game", new { name = Model.Name }, null)%></li>
               </ul>
            </div>


    <h2>Edit: '<%= Html.Encode(Model.PlaceName) %>' (from the game '<%= Html.Encode(Model.GameName) %>')</h2>

    <%= Html.ValidationSummary() %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            
            <p>
                <label for="DescriptionMarkdown">Place Description (Markdown)</label>
                <%= Html.TextArea("DescriptionMarkdown", new { rows = 7, style = "width:64%" })%>
                <%= Html.ValidationMessage("DescriptionMarkdown", "*") %>
            </p>
            <p>
                <label for="PlaceItemsJson">Place_Items (Json) Initial Items in this place</label>
                <%= Html.TextArea("PlaceItemsJson", new { rows = 7, style = "width:64%" })%>
                <%= Html.ValidationMessage("PlaceItemsJson", "*") %>
            </p>
            <p>
                <label for="InitPlaceJS">Init_Place (Javascript)</label>
                <%= Html.TextArea("InitPlaceJS", new { rows = 7, style = "width:64%" })%>
                <%= Html.ValidationMessage("InitPlaceJS", "*") %>
            </p>
            
            <p>
                <label for="PlaceStyle">Place Style (CSS):</label>
                <div class='help'>Useful if this place is stylistically different from the rest of the game. e.g. A cave might be dark.</div>
                <%= Html.TextArea("PlaceStyle", new { rows = 7, style = "width:64%" })%>
                <%= Html.ValidationMessage("PlaceStyle", "*") %>
            </p>
            <p>
                <label for="Reason">Edit Reason</label>
                <%= Html.TextBox("Reason") %>
                <%= Html.ValidationMessage("Reason", "*") %>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>


</asp:Content>

